package com.dkm.dkmproject.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.dkm.dkmproject.domain.EvaluationTb;
import com.dkm.dkmproject.domain.OrderTb;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
  * 订单表 Mapper 接口
 * </p>
 *
 * @author 周佳佳
 * @since 2020-04-26
 */
public interface OrderTbMapper extends BaseMapper<OrderTb> {
    int deleteByPrimaryKey(Integer orId);

    List<OrderTb> selectUserID();

    List<OrderTb> selectAll();

    List<OrderTb> selectAllTwo(@Param("orFwname") String orFwname);

    int selectCountTwo(OrderTb orderTb);

    int selectSqCount(String orId);

    int selectCountThree(@Param("orFwname") String orFwname);

    int selectCountOne();

    int insertSelective(OrderTb record);

    OrderTb selectByPrimaryKey(@Param("orId") String orId);

    int updateByPrimaryKeySelective(OrderTb record);

    int updateByPrimaryKeyWithBLOBs(OrderTb record);

    int updateByPrimaryKey(OrderTb record);

    /**
     * 根据用户id查询订单
     */
    public List<OrderTb> QueryOrder(Integer userId,Integer orState);



}